#include <REGX52.H>
#include "uart.h"
#include "medelay.h"
unsigned char buf_string[20]={"hello,jingui!"};
unsigned char buf;
void main()
{
	uart_init();
	buf_sendstring(buf_string);
	buf_sendstring("please input string!\n");
	
	buf_sendstring("your input string is:\n");
	
	
	
	
	while(1)
	{
		
	}
}

void uart_routine() interrupt 4
{
	if(RI==1){
		P2=~SBUF;
		buf_send(SBUF);
		
		RI=0;
	}
	
}